const http = uni.$u.http
const prefix = '/user/nfc'
export default {
	// 获取用户的nfc列表
	list: (params) => http.get(`${prefix}/list`, {
		params
	}),

	// 给用户绑定nfc
	nfcBind: (params) => http.post(`${prefix}/bind`,
		params
	),

	// 给用户解绑/删除nfc卡
	unbind: (params) => http.delete(`${prefix}/unbind`,
		params
	),

	// 获取nfc卡详情
	info: (params) => http.get(`${prefix}/info`, {
		params
	}),


	// 编辑nfc卡信息
	edit: (params) => http.post(`${prefix}/edit`,
		params
	),
}
